package com.gaga.console.core.entity.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 话术vo
 * </p>
 *
 * @author liujia
 * @since 2022-05-19
 */
@Data
@ApiModel("音频音效实时调整请求参数")
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class RealTimeChangeSpeedDto implements Serializable {
    private Double speed;

    private String playerType;

    @JsonCreator
    public RealTimeChangeSpeedDto(Double speed) {
        this.speed = speed;
        this.playerType = "default"; // 可设置默认值或留空
    }
}
